package com.bj58.mis.apm.server.kylin.mapper;

import com.bj58.mis.apm.server.kylin.model.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface KylinAnalysisMapper {
    void saveOrUpdateProject(Map<String, Object> map);

    void updateProject(Map<String, Object> map);

    void saveOrUpdateCube(Map<String, Object> map);

    void updateCube(Map<String, Object> map);

    void saveOrUpdateSegment(List<Segment> list);

    void saveOrUpdateSegmentRS(List<Map<String, Object>> list);

    void saveOrUpdateCubeDesc(Map<String, Object> map);

    void updateCubeDesc(Map<String, Object> map);

    void saveOrUpdateJob(List<Job> list);

    void saveOrUpdateJobSteps(List<Step> list);

    void saveOrUpdateQueryLog(List<Map<String, Object>> list);

    void saveOrUpdateRowKeyDesc(Map<String, Object> map);

    void updateRowKeyDesc(Map<String, Object> map);

    void saveOrUpdateCubeStatistic(List<CubeStatistic> list);

    void saveOrUpdateCubeCuboids(List<CubeCuboid> list);

    void saveZipfile(Map<String, Object> map);

    void updateZipfile(Map<String, Object> map);
}
